<template>
	<zui-box>
		<zui-navbar title="收款方式"></zui-navbar>
		<u-gap height="20rpx"></u-gap>
		<u-gap height="20rpx"></u-gap>
		<view class="cell_list" @click="xz_go('pay_bank')">
			<u-cell-group :border="false"><u-cell :border="false" isLink title="银行卡" :value="info.bank==1?'已绑定':'未绑定'"></u-cell></u-cell-group>
		</view>
		<u-gap height="20rpx"></u-gap>
		<view class="cell_list" @click="xz_go('pay_wechat')">
			<u-cell-group :border="false"><u-cell :border="false" isLink title="微信" :value="info.wechat==1?'已绑定':'未绑定'"></u-cell></u-cell-group>
		</view>
		<u-gap height="20rpx"></u-gap>
		<view class="cell_list" @click="xz_go('pay_ali')">
			<u-cell-group :border="false"><u-cell :border="false" isLink title="支付宝" :value="info.ali==1?'已绑定':'未绑定'"></u-cell></u-cell-group>
		</view>
	</zui-box>
</template>

<script>
export default {
	data() {
		return {
			info: {}
		};
	},
	onShow() {
		this.get_info();
	},
	methods: {
		get_info() {
			uni.$u.http
				.get('/app/user_wallet/isBindWallet', {
					params: {},
					custom: {
						auth: true,
						toast: true,
						catch: true
					}
				})
				.then(res => {
					this.info = res;
				})
				.catch(err => {});
		}
	}
};
</script>

<style lang="scss" scoped>
/* 	//底部按钮组 */
.cell_list {
	padding: 0 30rpx;
	box-sizing: border-box;
	margin: 0 auto;

	/deep/.u-cell__title-text {
		color: #999 !important;
		font-size: 28rpx;
	}
	/deep/.u-cell__left-icon-wrap {
		margin-right: 20rpx;
	}
	/deep/.u-cell--clickable {
		background: #fff;
	}
	/deep/.u-cell {
		background: #fff;
		border-radius: 20rpx;
	}
	/deep/.u-cell__value {
		color: #bfbfbf !important;
	}
}
</style>
